import { QqMapComponent } from './qq-map/qq-map.component'
import { ImgUploadComponent } from './img-upload/img-upload.component'
import { PopupComponent } from './popup/popup.component'
import { EstateReviewComponent } from './estate-review/estate-review-component'
import { EstateCommentTypeComponent } from './estate-comment-type/estate-comment-type.component'
import { EstateCommentMoreComponent } from './estate-comment-more/estate-comment-more.component'
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
import { NgZorroAntdMobileModule } from 'ng-zorro-antd-mobile'
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'
import { PipesModule } from '../pipes/pipes.module'
import { SwiperModule, SwiperConfigInterface } from 'ngx-swiper-wrapper'
import { EstateCommentComponent } from './estate-comment/estate-comment.component'
import { EstateItemComponent } from './estate-item/estate-item.component'
import { EstateNewsComponent } from './estate-news/estate-news.component'
import { EstateQuestionComponent } from './estate-question/estate-question.component'
import { EstateType1Component } from './estate-type1/estate-type1.component'
import { EstateType2Component } from './estate-type2/estate-type2.component'
import { NavbarComponent } from './navbar/navbar.component'
import { OprbarComponent } from './oprbar/oprbar.component'
import { RateComponent } from './rate/rate.component'
import { TabComponent } from './tab/tab.component'
import { TabbarComponent } from './tabbar/tabbar.component'
import { EmptyComponent } from './empty/empty.component'
import { ErrorComponent } from './error/error.component'
import { EstateCloseComponent } from './estate-close/estate-close.component'
import { LoadmoreComponent } from './loadmore/loadmore.component'
import { NomoreComponent } from './nomore/nomore.component'
import { ApplyUpComponent } from './apply-up/apply-up.component'
import { LoadingComponent } from './loading/loading.component'
import { SendCodeComponent } from './send-code/send-code.component'
import { ImageViewComponent } from './image-view/image-view.component'
import { ForbiddenComponent } from './forbidden/forbidden.component'
import { AqmModule } from 'angular-qq-maps'
import { EstateFilterComponent } from './estate-filter/estate-filter.component'

const DEFAULT_SWIPER_CONFIG: SwiperConfigInterface = {
  direction: 'horizontal',
  slidesPerView: 'auto'
}

@NgModule({
  imports: [
    CommonModule,
    PipesModule,
    NgZorroAntdMobileModule,
    FormsModule,
    ReactiveFormsModule,
    SwiperModule,
    AqmModule.forRoot({
      apiKey: 'R6YBZ-BS6CF-N3QJB-NXEWE-AILU3-3GF6F',
      apiProtocol:'https'
    })
  ],
  declarations: [
    EstateCommentComponent,
    EstateItemComponent,
    EstateNewsComponent,
    EstateQuestionComponent,
    EstateType1Component,
    EstateType2Component,
    NavbarComponent,
    OprbarComponent,
    RateComponent,
    TabComponent,
    TabbarComponent,
    EmptyComponent,
    ErrorComponent,
    EstateCloseComponent,
    LoadmoreComponent,
    NomoreComponent,
    ApplyUpComponent,
    LoadingComponent,
    SendCodeComponent,
    EstateCommentMoreComponent,
    EstateCommentTypeComponent,
    ImageViewComponent,
    EstateReviewComponent,
    ForbiddenComponent,
    PopupComponent,
    ImgUploadComponent,
    QqMapComponent,
    EstateFilterComponent
  ],
  exports: [
    EstateCommentComponent,
    EstateItemComponent,
    EstateNewsComponent,
    EstateQuestionComponent,
    EstateType1Component,
    EstateType2Component,
    NavbarComponent,
    OprbarComponent,
    RateComponent,
    TabComponent,
    TabbarComponent,
    EmptyComponent,
    ErrorComponent,
    EstateCloseComponent,
    LoadmoreComponent,
    NomoreComponent,
    ApplyUpComponent,
    LoadingComponent,
    SendCodeComponent,
    EstateCommentMoreComponent,
    EstateCommentTypeComponent,
    ImageViewComponent,
    EstateReviewComponent,
    ForbiddenComponent,
    PopupComponent,
    ImgUploadComponent,
    QqMapComponent,
    EstateFilterComponent
  ]
})
export class ComponentsModule {}
